FORMULA_PARAM

Description

This element creates a parameter which value is computed thanks to a mathematical formula.

Common Attributes

See Param element attribute. The FORMULA_PARAM attribute does not have the persistent attribute since its value is computed with a formula.

Specific Attributes
Name Value Type Default Value Description Comment V.

formula

a mathematical formula

Empty.

Mathematical formula to compute the parameter.

The formula can reference any parameter, curve or surface available in the skin.

1.6

Examples

The code below creates a parameter ("f_param")which is computed from the value of another ("variable"):

    <PARAM  id="variable" min="0" max="10" default="0"/>
    <FORMULA_PARAM  id="f_param" formula="cos(variable)"/>